@extends('admin.layouts.default')
@section('content')
    <form action="{{route('admin.role.update',$role)}}" method="post">
        @csrf @method('PUT')
        <div class="card">
            <div class="card-body">
                <ul class="nav nav-tabs nav-overflow header-tabs">
                    <li class="nav-item">
                        <a href="{{route('admin.role.index')}}" class="nav-link">角色列表</a>
                    </li>
                    <li class="nav-item">
                        <a href="{{route('admin.role.edit',$role)}}" class="nav-link active">编辑角色</a>
                    </li>
                </ul>
            </div>
            <div class="card-body">
                <div class="form-group">
                    <label for="name">角色名称</label>
                    <input type="text" name="name" readonly id="name" class="form-control" value="{{old('name',$role['name'])}}">
                    <small id="helpId" class="text-muted">角色名称<strong>添加后不能修改</strong></small>
                </div>
                <div class="form-group">
                    <label for="describe">角色描述</label>
                    <input type="text" name="title" id="describe" class="form-control"
                           value="{{old('title',$role['title'])}}">
                    <small id="helpId" class="text-muted">角色中文描述</small>
                </div>
            </div>
            <div class="card-footer text-muted">
                <button class="btn btn-sm btn-primary">保存修改</button>
            </div>
        </div>
    </form>
@endsection